<template>
  <div class="container">
    <el-button type="text" @click="dialogVisible = true">点击打开 Dialog</el-button>
    <el-dialog   :visible.sync="dialogVisible"
    center
      width="30%">

      <el-form :model="Form" label-width="60px">
        <el-form-item label="账户" >
          <el-input v-model="Form.name" placeholder="用户名或邮箱"></el-input>
        </el-form-item>
          <el-form-item label="密码">
          <el-input v-model="Form.password" show-password placeholder="密码"></el-input>
        </el-form-item>
      </el-form>
       <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
     </span>
     <template #title>
      <el-button>2411</el-button>

     </template>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data () {
    return {
      Form: {
        name: '',
        password: ''
      },
      dialogVisible: false
    }
  }
}
</script>

<style>

</style>
